package com.itheima.service;

import com.itheima.pojo.Brand;
import com.itheima.pojo.PageBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Tensin
 * @version 1.0
 * @date
 */
public interface BrandService {

    //查询所有
    List<Brand> selectAll();

    //添加单个brand
    void add(Brand brand);

    //删除单个brand
    void deleteSingle(int id);

    //批量删除
    void deleteByIds(int[] ids);

    //分页查询
    PageBean<Brand> selectByPage(int currentPage, int pageSize);

    //条件查询
    PageBean<Brand> selectByPageAndCondition(int currentPage, int pageSize,Brand brand);
}
